package Cantella::DJabberd::Web::UI::ViewPort::Field::JID;

use Reaction::Class;
use Cantella::DJabberd::Types (); #avoid clashes ...
extends 'Reaction::UI::ViewPort::Field::RelatedObject';

has '+value' => ( isa => Cantella::DJabberd::Types::JID, coerce => 1);
has '+value_map_method' => ( default => sub { 'as_bare_string' } );

sub _build_layout { 'field/related_object' };

__PACKAGE__->meta->make_immutable;

1;
